package by.siarhei.java.tij.reusing;

/**
 * java: constructor BoardGame in class by.siarhei.java.tij.reusing.BoardGame cannot be applied to given types;
 * required: int
 * found: no arguments
 * reason: actual and formal argument lists differ in length
 *
 * java: call to super must be first statement in constructor
 *
 * @author Siarhei Shchahratsou <s.siarhei@gmail.com>
 * @since 12.03.14
 */
public class Chess extends BoardGame {
    Chess() {
        super(11);
        System.out.println("Chess constructor");
    }
    public static void main(String[] args) {
        Chess x = new Chess();
    }
}

class BoardGame extends Game {
    BoardGame(int i) {
        super(i);
        System.out.println("BoardGame constructor");
    }
}

class Game {
    Game(int i) {
        System.out.println("Game constructor");
    }

}
